import request from '@/utils/request'

// 查询校历信息列表
export function schooledateList(query) {
  return request({
    url: '/basic/schooledate/list',
    method: 'get',
    params: query
  })
}
// 获取校历信息详细信息
export function schooledateInfor(query) {
  return request({
    url: '/basic/schooledate/' + query,
    method: 'get',
  })
}
// 新增校历信息
export function addSchooledate(data) {
  return request({
    url: '/basic/schooledate',
    method: 'post',
    data: data
  })
}
// 修改校历信息
export function updataSchooledate(data) {
  return request({
    url: '/basic/schooledate',
    method: 'put',
    data: data
  })
}
// 删除校历信息
export function delSchooledate(params) {
  return request({
    url: '/basic/schooledate/' + params,
    method: 'delete',
  })
}